import App from './App'

// #ifndef VUE3
import Vue from 'vue'
// 引入全局TuniaoUI
import TuniaoUI from 'tuniao-ui'
// import axios from 'axios'
// import axios from 'axios'
// Vue.prototype.$axios = axios
// 引入封装后的axios
import api from '@/common/vmeitime-http/'
//全局注入w-loading组件
Vue.prototype.$api = api
Vue.use(TuniaoUI)
// 引入store
import store from './store'
// 引入TuniaoUI提供的vuex简写方法
let vuexStore = require('@/store/$t.mixin.js')
Vue.mixin(vuexStore)

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	store,
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif